package Others.DesignPattern.FacadePattern.Pattern.Object;

public class Fund {

    private Stock01 stock01;
    private Stock02 stock02;
    private Stock03 stock03;
    private NationalDebt1 nationalDebt1;
    private Realty1 realty1;

    public Fund(){
        stock01 = new Stock01();
        stock02 = new Stock02();
        stock03 = new Stock03();
        nationalDebt1 = new NationalDebt1();
        realty1 = new Realty1();
    }

    public void buyFund(){
        stock01.buy();
        stock02.buy();
        stock03.buy();
        realty1.buy();
        nationalDebt1.buy();
    }

    public void sellFund(){
        stock01.sell();
        stock02.sell();
        stock03.sell();
        realty1.sell();
        nationalDebt1.sell();
    }


}
